*****************Replication File for Wendland "Introducing the Tracking of Terrorist Organization Splintering Dataset"***************

import delimited "/Users/makaylawendland/Desktop/REPLICATION DATA Wendland TOTOS Dataset International Interactions 04.10.2025.csv", encoding(UTF-8) clear 


***********The TOTOS dataset is in a terrorist-group year format. The negative binomial regressions in the paper are in a cross-sectional format with the unit of analysis being terrorist group (identified by unique group identification number-GiD). Binary variables for analysis exist in the dataset for group ideology (left, nationalist, religious, and right), region (Americas, MENA, Asia, and Europe), splinter type (Divorce, Challenger, Familial, and Reformation). Size is an ordinal variable in this analysis.*************

collapse (sum)total_attacks total_deaths total_injuries (max)divorce challenger familial reformation parent duration asia europe americas mena left nationalist religious right pvduration expsplit totfamsplits totsplit famid size, by(gid)

*************Lethality measures are constructed using the GTD dataset. See TOTOS codebook for filtering strategies********

*************Table 2. Negative Binomial Regressions of Terrorist Group Splinter Type and Lethality, 1970-2020*********

*************Model 1****************
nbreg total_attacks challenger familial reformation divorce, cluster(gid) 

*************Model 2****************
nbreg total_attacks divorce challenger familial reformation duration asia europe mena left nationalist religious size, cluster(gid)

*************Model 3*****************
nbreg total_attacks divorce challenger familial reformation duration asia europe mena left nationalist religious size expsplit totfamsplits totsplit, cluster(famid)

*************Model 4*****************
nbreg total_deaths divorce challenger familial reformation, cluster(gid)

*************Model 5*****************
nbreg total_deaths divorce challenger familial reformation duration asia europe mena left nationalist religious size,cluster(gid)

*************Model 6*****************
nbreg total_deaths divorce challenger familial reformation duration asia europe mena left nationalist religious size expsplit totfamsplits totsplit, cluster(famid)

*************Model 7*****************
nbreg total_injuries divorce challenger familial reformation, cluster(gid) 

*************Model 8*****************
nbreg total_injuries divorce challenger familial reformation duration asia europe mena left nationalist religious size, cluster(gid)

*************Model 9*****************
nbreg total_injuries divorce challenger familial reformation duration asia europe mena left nationalist religious size expsplit totfamsplits totsplit, cluster(famid)

************Table 3. Negative Binomial Regressions of Terrorist Group Splinter Type and Lethality using Political Violence Duration, 1970-2020**********

*************Model 1******************
nbreg total_attacks divorce challenger familial reformation, cluster(gid) 

**************Model 2*****************
nbreg total_attacks divorce challenger familial reformation pvduration asia europe mena left nationalist religious size, cluster(gid) 

**************Model 3*****************
nbreg total_attacks divorce challenger familial reformation pvduration asia europe mena left nationalist religious size expsplit totfamsplits totsplit, cluster(famid) 

**************Model 4*****************
nbreg total_deaths divorce challenger familial reformation, cluster(gid)

**************Model 5*****************
nbreg total_deaths divorce challenger familial reformation pvduration asia europe mena left nationalist religious size, cluster(gid)

**************Model 6******************
nbreg total_deaths divorce challenger familial reformation pvduration asia europe mena left nationalist religious size expsplit totfamsplits totsplit, cluster(famid) 

**************Model 7******************
nbreg total_injuries divorce challenger familial reformation, cluster(gid) 

**************Model 8******************
nbreg total_injuries divorce challenger familial reformation pvduration asia europe mena left nationalist religious size, cluster(gid)

**************Model 9******************
nbreg total_injuries divorce challenger familial reformation pvduration asia europe mena left nationalist religious size expsplit totfamsplits totsplit, cluster(famid)

end. 


*************Coding ISIS as a parent organization for negative binomial regressions*************

import delimited "/Users/makaylawendland/Desktop/REPLICATION DATA Wendland TOTOS Dataset International Interactions 04.10.2025 ISIS Change.csv", encoding(UTF-8) clear 

collapse (sum)total_attacks total_deaths total_injuries (max)divorce challenger familial reformation parent duration asia europe americas mena left nationalist religious right pvduration expsplit totfamsplits totsplit famid size, by(gid)


*************Table 4. Negative Binomial Regressions of Terrorist Group Splinter Type and Lethality ISIS Coding Change, 1970-2020*********

*************Model 1****************
nbreg total_attacks challenger familial reformation divorce, cluster(gid) 

*************Model 2****************
nbreg total_attacks divorce challenger familial reformation duration asia europe mena left nationalist religious size, cluster(gid)

*************Model 3*****************
nbreg total_attacks divorce challenger familial reformation duration asia europe mena left nationalist religious size expsplit totfamsplits totsplit, cluster(famid)

*************Model 4*****************
nbreg total_deaths divorce challenger familial reformation, cluster(gid)

*************Model 5*****************
nbreg total_deaths divorce challenger familial reformation duration asia europe mena left nationalist religious size,cluster(gid)

*************Model 6*****************
nbreg total_deaths divorce challenger familial reformation duration asia europe mena left nationalist religious size expsplit totfamsplits totsplit, cluster(famid)

*************Model 7*****************
nbreg total_injuries divorce challenger familial reformation, cluster(gid) 

*************Model 8*****************
nbreg total_injuries divorce challenger familial reformation duration asia europe mena left nationalist religious size, cluster(gid)

*************Model 9*****************
nbreg total_injuries divorce challenger familial reformation duration asia europe mena left nationalist religious size expsplit totfamsplits totsplit, cluster(famid)

end. 

*************Upload data in group-year format for survival analysis**********

import delimited "/Users/makaylawendland/Desktop/REPLICATION DATA Wendland TOTOS Dataset International Interactions 04.10.2025.csv", encoding(UTF-8) clear 


************set the data for survival models************* 
stset duration, failure(end) id(gid) 

************Table 2: Negative Binomial Regressions of Terrorist Group Splinter Type and Lethality, 1970-2020********

************Model 10**************
stcox divorce familial challenger reformation, cluster(gid) 

************Model 11**************
stcox divorce challenger familial reformation asia europe mena left nationalist religious size, cluster(gid) 

************Table 3. Negative Binomial Regressions of Terrorist Group Splinter Type and Lethality using Political Violence Duration, 1970-2020**********

************Model 10****************
stcox divorce challenger familial reformation, cluster(famid)

************Model 11****************
stcox divorce challenger familial reformation asia europe mena left nationalist religious size, cluster(famid) 

end. 


*************Coding ISIS as a parent organization for survival analyses*************

import delimited "/Users/makaylawendland/Desktop/REPLICATION DATA Wendland TOTOS Dataset International Interactions 04.10.2025 ISIS Change.csv", encoding(UTF-8) clear 

*************Upload data in group-year format for survival analysis**********

************set the data for survival models************* 
stset duration, failure(end) id(gid) 

************Table 4: Negative Binomial Regressions of Terrorist Group Splinter Type and Lethality ISIS Coding Change, 1970-2020********

************Model 10**************
stcox divorce familial challenger reformation, cluster(gid) 

************Model 11**************
stcox divorce challenger familial reformation asia europe mena left nationalist religious size, cluster(gid) 


end. 

****************Replication File for Wendland "Introducing the Tracking of Terrorist Organization Splintering Dataset" Appendices***************

import delimited "/Users/makaylawendland/Desktop/REPLICATION DATA Wendland TOTOS Dataset International Interactions 04.10.2025.csv", encoding(UTF-8) clear 

collapse (sum)total_attacks total_deaths total_injuries (max)divorce challenger familial reformation parent duration asia europe americas mena left nationalist religious right pvduration expsplit totfamsplits totsplit famid size, by(gid)

drop if famid==9


*************Appendix I: Negative Binomial Regressions of Terrorist Group Splinter Type and Lethality, Drop Family 9, 1970-2020*********

*************Model 1****************
nbreg total_attacks challenger familial reformation divorce, cluster(gid) 

*************Model 2****************
nbreg total_attacks divorce challenger familial reformation duration asia europe mena left nationalist religious size, cluster(gid)

*************Model 3*****************
nbreg total_attacks divorce challenger familial reformation duration asia europe mena left nationalist religious size expsplit totfamsplits totsplit, cluster(famid)

*************Model 4*****************
nbreg total_deaths divorce challenger familial reformation, cluster(gid)

*************Model 5*****************
nbreg total_deaths divorce challenger familial reformation duration asia europe mena left nationalist religious size,cluster(gid)

*************Model 6*****************
nbreg total_deaths divorce challenger familial reformation duration asia europe mena left nationalist religious size expsplit totfamsplits totsplit, cluster(famid)

*************Model 7*****************
nbreg total_injuries divorce challenger familial reformation, cluster(gid) 

*************Model 8*****************
nbreg total_injuries divorce challenger familial reformation duration asia europe mena left nationalist religious size, cluster(gid)

*************Model 9*****************
nbreg total_injuries divorce challenger familial reformation duration asia europe mena left nationalist religious size expsplit totfamsplits totsplit, cluster(famid)

end. 

*************Upload data in group-year format for Appendix I survival analysis **********

import delimited "/Users/makaylawendland/Desktop/REPLICATION DATA Wendland TOTOS Dataset International Interactions 04.10.2025.csv", encoding(UTF-8) clear 

drop if famid==9

************set the data for survival models************* 
stset duration, failure(end) id(gid) 

************Appendix I: Negative Binomial Regressions of Terrorist Group Splinter Type and Lethality, Drop Family 9, 1970-2020********

************Model 10**************
stcox divorce familial challenger reformation, cluster(gid) 

************Model 11**************
stcox divorce challenger familial reformation asia europe mena left nationalist religious size, cluster(gid) 


end. 

